﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PostSharp.Aspects.Advices;
using PostSharp.Aspects;

namespace WindowsFormsApplication
{
    [Serializable]
    class TraceAttribute : MethodLevelAspect
    {
        [OnMethodEntryAdvice, SelfPointcut]
        public void OnEntry(MethodExecutionArgs args)
        {
            System.Diagnostics.Debug.WriteLine("Entering " + args.Method.Name);
        }
    }
}
